module.exports = app => {

  const { router, controller } = app;
  router.get('/', controller.admin.access.tologin);
  router.get('/admin/access/index', app.jwt,controller.admin.access.index);
  router.post('/admin/access/login', controller.admin.access.login)
  router.post('/admin/access/changepassword', app.jwt ,controller.admin.access.change)
  router.get('/admin/access/logout' ,controller.admin.access.logout)
  router.get('/admin/access/to_password', app.jwt ,controller.admin.access.topassword)

  router.get('/admin/render/role/to', app.jwt,controller.admin.role.to)
  router.get('/admin/role/tonew', app.jwt,controller.admin.role.tonew)
  router.get('/admin/role/toedit', app.jwt,controller.admin.role.toedit)
  router.resources('role', '/admin/role',app.jwt, controller.admin.role);

  router.get('/admin/render/auth/to', app.jwt,controller.admin.auth.to)
  router.get('/admin/auth/tonew', app.jwt,controller.admin.auth.tonew)
  router.get('/admin/auth/toedit', app.jwt,controller.admin.auth.toedit)
  router.resources('auth', '/admin/auth',app.jwt, controller.admin.auth);

  router.get('/admin/render/admin/to', app.jwt,controller.admin.admin.to)
  router.get('/admin/admin/tonew', app.jwt,controller.admin.admin.tonew)
  router.get('/admin/admin/toedit', app.jwt,controller.admin.admin.toedit)
  router.get('/admin/admin/todetail', app.jwt,controller.admin.admin.todetail)
  router.resources('admin', '/admin/admin',app.jwt, controller.admin.admin);

  router.get('/admin/render/type/to', app.jwt,controller.admin.type.to)
  router.get('/admin/type/tonew', app.jwt,controller.admin.type.tonew)
  router.get('/admin/type/toedit', app.jwt,controller.admin.type.toedit)
  router.get('/admin/type/todetail', app.jwt,controller.admin.type.todetail)
  router.resources('type', '/admin/type',app.jwt, controller.admin.type);

  router.get('/admin/render/typesec/to', app.jwt,controller.admin.typesec.to)
  router.get('/admin/typesec/tonew', app.jwt,controller.admin.typesec.tonew)
  router.get('/admin/typesec/toedit', app.jwt,controller.admin.typesec.toedit)
  router.get('/admin/typesec/todetail', app.jwt,controller.admin.typesec.todetail)
  router.resources('typesec', '/admin/typesec',app.jwt, controller.admin.typesec);

  router.get('/admin/render/center/to',app.jwt,controller.admin.center.to)
  router.get('/admin/center/tonew',app.jwt,controller.admin.center.tonew)
  router.get('/admin/center/toedit', app.jwt,controller.admin.center.toedit)
  router.get('/admin/center/todetail', app.jwt,controller.admin.center.todetail)
  router.resources('center', '/admin/center', app.jwt, controller.admin.center);

  router.get('/admin/render/store/to',app.jwt,controller.admin.store.to)
  router.get('/admin/store/tonew',app.jwt,controller.admin.store.tonew)
  router.get('/admin/store/toedit', app.jwt,controller.admin.store.toedit)
  router.get('/admin/store/todetail', app.jwt,controller.admin.store.todetail)
  router.resources('store', '/admin/store', app.jwt, controller.admin.store);

  router.get('/admin/render/centeruser/to',app.jwt,controller.admin.centerUser.to)
  router.get('/admin/centeruser/tonew',app.jwt,controller.admin.centerUser.tonew)
  router.get('/admin/centeruser/toedit', app.jwt,controller.admin.centerUser.toedit)
  router.get('/admin/centeruser/todetail', app.jwt,controller.admin.centerUser.todetail)
  router.resources('centeruser', '/admin/centeruser', app.jwt, controller.admin.centerUser);

  router.get('/admin/render/storeuser/to',app.jwt,controller.admin.storeUser.to)
  router.get('/admin/storeuser/tonew',app.jwt,controller.admin.storeUser.tonew)
  router.get('/admin/storeuser/toedit', app.jwt,controller.admin.storeUser.toedit)
  router.get('/admin/storeuser/todetail', app.jwt,controller.admin.storeUser.todetail)
  router.resources('storeuser', '/admin/storeuser', app.jwt, controller.admin.storeUser);

  router.get('/admin/render/customer/to',app.jwt,controller.admin.customer.to)
  router.get('/admin/customer/tonew',app.jwt,controller.admin.customer.tonew)
  router.get('/admin/customer/toedit', app.jwt,controller.admin.customer.toedit)
  router.get('/admin/customer/todetail', app.jwt,controller.admin.customer.todetail)
  router.resources('customer', '/admin/customer', app.jwt, controller.admin.customer);

  router.get('/admin/render/assign/to',app.jwt,controller.admin.assign.to)
  router.get('/admin/assign/toedit', app.jwt,controller.admin.assign.toedit)
  router.resources('assign', '/admin/assign', app.jwt, controller.admin.assign);

  router.get('/admin/render/recharge/to',app.jwt,controller.admin.recharge.to)
  router.resources('recharge', '/admin/recharge', app.jwt, controller.admin.recharge);

  router.get('/admin/render/order/to',app.jwt,controller.admin.order.to)
  router.get('/admin/order/todetail', app.jwt,controller.admin.order.todetail)
  router.resources('order', '/admin/order', app.jwt, controller.admin.order);

  router.get('/admin/render/complaint/to',app.jwt,controller.admin.complaint.to)
  router.get('/admin/complaint/toedit', app.jwt,controller.admin.complaint.toedit)
  router.resources('complaint', '/admin/complaint', app.jwt, controller.admin.complaint);

  //统计接口
  router.get('/admin/render/dashboard/to',app.jwt,controller.admin.dashboard.to)
  router.get('/admin/dashboard/allAchievments',app.jwt,controller.admin.dashboard.allAchievments)
  router.get('/admin/dashboard/allAchievmentsLine',app.jwt,controller.admin.dashboard.allAchievmentsLine)
  // router.get('/admin/dashboard/ttt',app.jwt,controller.admin.dashboard.ttt)
  router.get('/admin/dashboard/oneAchievments',app.jwt,controller.admin.dashboard.oneAchievments)
  router.get('/admin/dashboard/oneAchievmentsLine',app.jwt,controller.admin.dashboard.oneAchievmentsLine)




  // 微信接口
  router.post('/api/user/login', controller.api.wxUser.login)
  router.post('/api/user/register', controller.api.wxUser.register)
  router.post('/api/user/forgot', controller.api.wxUser.forgot)
  router.get('/api/user/balance', controller.api.wxUser.balance)
  router.get('/api/user/code', controller.api.wxUser.code)
  router.get('/api/type/toptype', controller.api.wxType.toptype)
  router.get('/api/type/sectype', controller.api.wxType.sectype)


  router.get('/api/address/default', controller.api.wxAddress.default)
  router.get('/api/address/all', controller.api.wxAddress.all)
  router.get('/api/address/del', controller.api.wxAddress.del)
  router.get('/api/address/setdefault', controller.api.wxAddress.setDefault)
  router.post('/api/address/update', controller.api.wxAddress.update)
  router.post('/api/address/add', controller.api.wxAddress.add)


  router.post('/api/order/add', controller.api.wxOrder.add)
  router.get('/api/order/ing', controller.api.wxOrder.getIngList)
  router.get('/api/order/done', controller.api.wxOrder.getDoneList)
  router.post('/api/order/complaint', controller.api.wxOrder.complaint)
  router.post('/api/order/confirm', controller.api.wxOrder.confirm)
  router.get('/api/order/detail', controller.api.wxOrder.orderDetail)


  router.get('/api/order/staffOrderList', controller.api.wxOrder.staffOrderList)
  router.get('/api/order/staffIngOrderList', controller.api.wxOrder.staffIngOrderList)
  router.get('/api/order/staffDoneOrderList', controller.api.wxOrder.staffDoneOrderList)
  router.get('/api/order/centerDoneOrderList', controller.api.wxOrder.centerDoneOrderList)
  router.get('/api/order/centerOrderList', controller.api.wxOrder.centerOrderList)
  router.post('/api/order/grap', controller.api.wxOrder.grap)
  router.post('/api/order/staffOrderProcess', controller.api.wxOrder.staffOrderProcess)


  // router.get('/admin/main/toindex', controller.admin.main.toindex);
  // router.get('/admin/main/toauth', controller.admin.main.tologin);
  // router.get('/admin/main/logout', controller.admin.main.logout);
  // router.post('/admin/main/login', controller.admin.main.login);
  // router.get('/admin/main/hasnofunc', controller.admin.main.hasnofunc);
  //
  // //后台案件类型管理
  // router.get('/admin/classify/tolist',controller.admin.classify.tolist);
  // router.get('/admin/classify/query',controller.admin.classify.query);
  // router.get('/admin/classify/all',controller.admin.classify.all);
  // router.get('/admin/classify/del',controller.admin.classify.del);
  // router.get('/admin/classify/find',controller.admin.classify.find);
  // router.get('/admin/classify/toedit',controller.admin.classify.toedit);
  // router.post('/admin/classify/edit',controller.admin.classify.edit);
  // router.get('/admin/classify/toadd',controller.admin.classify.toadd);
  // router.post('/admin/classify/add',controller.admin.classify.add);
  //
  // //后台案件管理
  // router.get('/admin/event/tojdlist', controller.admin.event.tojdlist);
  // router.get('/admin/event/tozzlist', controller.admin.event.tozzlist);
  // router.get('/admin/event/getroads', controller.admin.event.getroads);
  // router.get('/admin/event/getevent', controller.admin.event.getevent);
  // router.get('/admin/event/getuser', controller.admin.event.getuser);
  // router.get('/admin/event/getclassifys', controller.admin.event.getclassifys);
  // router.get('/admin/event/jdlist', controller.admin.event.jdlist);
  // router.get('/admin/event/zzlist', controller.admin.event.zzlist);
  // router.get('/admin/event/del', controller.admin.event.del);
  // router.get('/admin/event/todetail', controller.admin.event.todetail);
  // router.get('/admin/event/detail', controller.admin.event.detail);
  // router.get('/admin/event/toflow', controller.admin.event.toflow);
  // router.get('/admin/event/flow', controller.admin.event.flow);
  // router.get('/admin/event/tohandle', controller.admin.event.tohandle);
  // router.get('/admin/event/gettop', controller.admin.event.gettop);
  // router.get('/admin/event/getestate', controller.admin.event.getestate);
  // router.post('/admin/event/handle', controller.admin.event.handle);
  // //后台用户管理
  // router.get('/admin/admin/toquery', controller.admin.admin.toquery);
  // router.get('/admin/admin/query', controller.admin.admin.query);
  // router.get('/admin/admin/toadd', controller.admin.admin.toadd);
  // router.post('/admin/admin/add', controller.admin.admin.add);
  // router.get('/admin/admin/toedit', controller.admin.admin.toedit);
  // router.get('/admin/admin/find', controller.admin.admin.find);
  // router.post('/admin/admin/edit', controller.admin.admin.edit);
  // router.post('/admin/admin/del', controller.admin.admin.del);
  // router.post('/admin/admin/post', controller.admin.admin.post);
  // router.get('/admin/admin/todetail', controller.admin.admin.todetail);
  // router.get('/admin/admin/detail', controller.admin.admin.detail);
  // router.get('/admin/admin/reset', controller.admin.admin.reset);
  //
  // //后台所有商户用户管理
  // router.get('/admin/allshopuser/toquery', controller.admin.allshopuser.toquery);
  // router.get('/admin/allshopuser/query', controller.admin.allshopuser.query);
  // //后台某商户用户管理
  // router.get('/admin/shopuser/toquery', controller.admin.shopuser.toquery);
  // router.get('/admin/shopuser/query', controller.admin.shopuser.query);
  // router.get('/admin/shopuser/toadd', controller.admin.shopuser.toadd);
  // router.post('/admin/shopuser/add', controller.admin.shopuser.add);
  // router.get('/admin/shopuser/toedit', controller.admin.shopuser.toedit);
  // router.get('/admin/shopuser/find', controller.admin.shopuser.find);
  // router.post('/admin/shopuser/edit', controller.admin.shopuser.edit);
  // router.post('/admin/shopuser/del', controller.admin.shopuser.del);
  // router.post('/admin/shopuser/post', controller.admin.shopuser.post);
  //
  // //后台所有单位用户管理
  // router.get('/admin/allunituser/toquery', controller.admin.allunituser.toquery);
  // router.get('/admin/allunituser/query', controller.admin.allunituser.query);
  // //后台某单位用户管理
  // router.get('/admin/unituser/toquery', controller.admin.unituser.toquery);
  // router.get('/admin/unituser/query', controller.admin.unituser.query);
  // router.get('/admin/unituser/toadd', controller.admin.unituser.toadd);
  // router.post('/admin/unituser/add', controller.admin.unituser.add);
  // router.get('/admin/unituser/toedit', controller.admin.unituser.toedit);
  // router.get('/admin/unituser/find', controller.admin.unituser.find);
  // router.post('/admin/unituser/edit', controller.admin.unituser.edit);
  // router.post('/admin/unituser/del', controller.admin.unituser.del);
  // router.post('/admin/unituser/post', controller.admin.unituser.post);
  //
  // //后台所有物业用户管理
  // router.get('/admin/allestateuser/toquery', controller.admin.allestateuser.toquery);
  // router.get('/admin/allestateuser/query', controller.admin.allestateuser.query);
  // //后台某物业用户管理
  // router.get('/admin/estateuser/toquery', controller.admin.estateuser.toquery);
  // router.get('/admin/estateuser/query', controller.admin.estateuser.query);
  // router.get('/admin/estateuser/toadd', controller.admin.estateuser.toadd);
  // router.post('/admin/estateuser/add', controller.admin.estateuser.add);
  // router.get('/admin/estateuser/toedit', controller.admin.estateuser.toedit);
  // router.get('/admin/estateuser/find', controller.admin.estateuser.find);
  // router.post('/admin/estateuser/edit', controller.admin.estateuser.edit);
  // router.post('/admin/estateuser/del', controller.admin.estateuser.del);
  // router.post('/admin/estateuser/post', controller.admin.estateuser.post);
  //
  // //后台市民用户管理
  // router.get('/admin/citizens/toquery', controller.admin.citizens.toquery);
  // router.get('/admin/citizens/query', controller.admin.citizens.query);
  // router.post('/admin/citizens/post', controller.admin.citizens.post);
  //
  // //后台用户角色管理
  // router.get('/admin/admintype/toquery', controller.admin.admintype.toquery);
  // router.get('/admin/admintype/query', controller.admin.admintype.query);
  // router.post('/admin/admintype/del', controller.admin.admintype.del);
  //
  // //后台用户角色管理
  // router.get('/admin/streetusertype/toquery', controller.admin.streetusertype.toquery);
  // router.get('/admin/streetusertype/query', controller.admin.streetusertype.query);
  // router.post('/admin/streetusertype/del', controller.admin.streetusertype.del);
  //
  // //后台街道用户管理
  // router.get('/admin/streetuser/toquery', controller.admin.streetuser.toquery);
  // router.get('/admin/streetuser/query', controller.admin.streetuser.query);
  // router.get('/admin/streetuser/toadd', controller.admin.streetuser.toadd);
  // router.post('/admin/streetuser/add', controller.admin.streetuser.add);
  // router.get('/admin/streetuser/toedit', controller.admin.streetuser.toedit);
  // router.get('/admin/streetuser/find', controller.admin.streetuser.find);
  // router.post('/admin/streetuser/edit', controller.admin.streetuser.edit);
  // router.post('/admin/streetuser/del', controller.admin.streetuser.del);
  // router.post('/admin/streetuser/post', controller.admin.streetuser.post);
  // router.get('/admin/streetuser/todetail', controller.admin.streetuser.todetail);
  // router.get('/admin/streetuser/detail', controller.admin.streetuser.detail);
  // router.get('/admin/streetuser/reset', controller.admin.streetuser.reset);
  //
  // //街道用户管理路段管理
  // router.get('/admin/streetusersection/toquery', controller.admin.streetusersection.toquery);
  // router.get('/admin/streetusersection/query', controller.admin.streetusersection.query);
  // router.get('/admin/streetusersection/toadd', controller.admin.streetusersection.toadd);
  // router.post('/admin/streetusersection/add', controller.admin.streetusersection.add);
  // router.get('/admin/streetusersection/toedit', controller.admin.streetusersection.toedit);
  // router.get('/admin/streetusersection/find', controller.admin.streetusersection.find);
  // router.post('/admin/streetusersection/edit', controller.admin.streetusersection.edit);
  // router.post('/admin/streetusersection/del', controller.admin.streetusersection.del);
  //
  // router.get('/admin/identity/toquery', controller.admin.identity.toquery);
  // router.get('/admin/identity/query', controller.admin.identity.query);
  // router.get('/admin/identity/tocreate', controller.admin.identity.tocreate);
  // router.post('/admin/identity/create', controller.admin.identity.create);
  // router.get('/admin/identity/find', controller.admin.identity.find);
  // router.get('/admin/identity/toedit', controller.admin.identity.toedit);
  // router.post('/admin/identity/update', controller.admin.identity.update);
  // router.post('/admin/identity/del', controller.admin.identity.del);

  //新闻接口
  // router.get('/admin/news/toadd', controller.admin.news.toadd);
  // router.post('/admin/news/add', controller.admin.news.add);
  // router.get('/admin/news/toedit', controller.admin.news.toedit);
  // router.post('/admin/news/edit', controller.admin.news.edit);
  // router.get('/admin/news/tolist', controller.admin.news.tolist);
  // router.get('/admin/news/datalist', controller.admin.news.datalist);
  // router.post('/admin/news/del', controller.admin.news.del);
  // router.post('/admin/news/post', controller.admin.news.post);
  // router.post('/admin/news/top', controller.admin.news.top);
  // router.get('/admin/news/find', controller.admin.news.find);
  // router.get('/admin/news/todetail', controller.admin.news.todetail);

  //banner接口
  // router.get('/admin/banner/toadd', controller.admin.banner.toadd);
  // router.post('/admin/banner/add', controller.admin.banner.add);
  // router.get('/admin/banner/toedit', controller.admin.banner.toedit);
  // router.post('/admin/banner/edit', controller.admin.banner.edit);
  // router.get('/admin/banner/tolist', controller.admin.banner.tolist);
  // router.get('/admin/banner/datalist', controller.admin.banner.datalist);
  // router.post('/admin/banner/del', controller.admin.banner.del);
  // router.post('/admin/banner/top', controller.admin.banner.top);
  // router.get('/admin/banner/find', controller.admin.banner.find);
  // router.get('/admin/banner/todetail', controller.admin.banner.todetail);


  //文件上传接口
  router.post('/common/upload/upload', controller.common.upload.upload);
  router.post('/common/upload/zipimg', controller.common.upload.zipimg);
  // //下载二维码
  // router.get('/common/upload/notBindQrcodes', controller.common.upload.notBindQrcodes);

  //角色管理
  // router.get('/admin/role/toquery', controller.admin.role.toquery);
  // router.get('/admin/role/query', controller.admin.role.query);
  // router.get('/admin/role/tocreate', controller.admin.role.tocreate);
  // router.post('/admin/role/create', controller.admin.role.create);
  // router.get('/admin/role/toedit', controller.admin.role.toedit);
  // router.post('/admin/role/update', controller.admin.role.update);
  // router.get('/admin/role/find', controller.admin.role.find);
  // router.post('/admin/role/del', controller.admin.role.del);
  // router.get('/admin/role/getlist', controller.admin.role.getlist);
  // router.get('/admin/role/getlistbytype', controller.admin.role.getlistbytype);

  //功能管理  接口
  // router.get('/admin/function/toquery', controller.admin.function.toquery);
  // router.get('/admin/function/query', controller.admin.function.query);
  // router.get('/admin/function/query2', controller.admin.function.query2);
  // router.get('/admin/function/tocreate', controller.admin.function.tocreate);
  // router.post('/admin/function/create', controller.admin.function.create);
  // router.get('/admin/function/toedit', controller.admin.function.toedit);
  // router.get('/admin/function/find', controller.admin.function.find);
  // router.post('/admin/function/update', controller.admin.function.update);
  // router.post('/admin/function/del', controller.admin.function.del);


  //代码生成器
  router.get('/admin/gen/clgen', controller.admin.gen.clgen);

  //header 功能配置接口
//   router.get('/admin/header/to_safety_edit', controller.admin.header.to_safety_edit);
//   router.get('/admin/header/to_personal_edit', controller.admin.header.to_personal_edit);
//   router.post('/admin/header/do_safety_edit', controller.admin.header.do_safety_edit);
//
//   //树形表格管理
//   // router.get('/admin/dict/toquery', controller.admin.dict.toquery);
//   // router.get('/admin/dict/query', controller.admin.dict.query);
//   // router.get('/admin/dict/query2', controller.admin.dict.query2);//获取所有的父级元素
//   // router.get('/admin/dict/toaddchild', controller.admin.dict.toaddchild);
//   // router.get('/admin/dict/find', controller.admin.dict.find);
//   // router.get('/admin/dict/tocreate', controller.admin.dict.tocreate);
//   // router.get('/admin/dict/toedit', controller.admin.dict.toedit);
//   // router.get('/admin/dict/toeditchild', controller.admin.dict.toeditchild);
//   // router.post('/admin/dict/create', controller.admin.dict.create);
//   // router.post('/admin/dict/addchild', controller.admin.dict.addchild);
//   // router.post('/admin/dict/del', controller.admin.dict.del);
//   // router.post('/admin/dict/update', controller.admin.dict.update);
//   // router.post('/admin/dict/updatechild', controller.admin.dict.updatechild);
//
//   //街道管理接口
//   router.get('/admin/street/toquery',controller.admin.street.toquery);
//   router.get('/admin/street/query',controller.admin.street.query);
//   router.get('/admin/street/toadd',controller.admin.street.toadd);
//   router.post('/admin/street/add',controller.admin.street.add);
//   router.get('/admin/street/toedit',controller.admin.street.toedit);
//   router.get('/admin/street/find',controller.admin.street.find);
//   router.post('/admin/street/update',controller.admin.street.update);
//   router.post('/admin/street/del',controller.admin.street.del);
//   router.get('/admin/street/getlist',controller.admin.street.getlist);
//   router.get('/admin/street/check',controller.admin.street.check);
//
//   //条线部门管理
//   router.get('/admin/stripline/toquery',controller.admin.stripline.toquery);
//   router.get('/admin/stripline/query',controller.admin.stripline.query);
//   router.get('/admin/stripline/toadd',controller.admin.stripline.toadd);
//   router.post('/admin/stripline/add',controller.admin.stripline.add);
//   router.get('/admin/stripline/toedit',controller.admin.stripline.toedit);
//   router.post('/admin/stripline/update',controller.admin.stripline.update);
//   router.get('/admin/stripline/find',controller.admin.stripline.find);
//   router.get('/admin/stripline/getlistbystreet',controller.admin.stripline.getlistbystreet);
//   router.post('/admin/stripline/del',controller.admin.stripline.del);
//
//   //道路管理
//   router.get('/admin/road/toquery',controller.admin.road.toquery);
//   router.get('/admin/road/query',controller.admin.road.query);
//   router.get('/admin/road/toadd',controller.admin.road.toadd);
//   router.post('/admin/road/add',controller.admin.road.add);
//   router.get('/admin/road/toedit',controller.admin.road.toedit);
//   router.get('/admin/road/find',controller.admin.road.find);
//   router.post('/admin/road/update',controller.admin.road.update);
//   router.post('/admin/road/del',controller.admin.road.del);
//   router.get('/admin/road/getlist',controller.admin.road.getlist);
//
//   //物业管理
//   router.get('/admin/estate/toadd',controller.admin.estate.toadd);
//   router.post('/admin/estate/add',controller.admin.estate.add);
//   router.get('/admin/estate/toquery',controller.admin.estate.toquery);
//   router.get('/admin/estate/query',controller.admin.estate.query);
//   router.get('/admin/estate/toedit',controller.admin.estate.toedit);
//   router.get('/admin/estate/find',controller.admin.estate.find);
//   router.post('/admin/estate/update',controller.admin.estate.update);
//   router.post('/admin/estate/del',controller.admin.estate.del);
//
//   //物业路段管理
//   router.get('/admin/roadSectionEstate/toadd',controller.admin.roadSectionEstate.toadd);
//   router.post('/admin/roadSectionEstate/add',controller.admin.roadSectionEstate.add);
//   router.get('/admin/roadSectionEstate/toquery',controller.admin.roadSectionEstate.toquery);
//   router.get('/admin/roadSectionEstate/query',controller.admin.roadSectionEstate.query);
//   router.post('/admin/roadSectionEstate/del',controller.admin.roadSectionEstate.del);
//   router.get('/admin/roadSectionEstate/toedit',controller.admin.roadSectionEstate.toedit);
//   router.get('/admin/roadSectionEstate/find',controller.admin.roadSectionEstate.find);
//   router.post('/admin/roadSectionEstate/update',controller.admin.roadSectionEstate.update);
//
//   //道路路段管理
//   router.get('/admin/roadSectionStreet/toquery',controller.admin.roadSectionStreet.toquery);
//   router.get('/admin/roadSectionStreet/query',controller.admin.roadSectionStreet.query);
//   router.get('/admin/roadSectionStreet/toadd',controller.admin.roadSectionStreet.toadd);
//   router.post('/admin/roadSectionStreet/add',controller.admin.roadSectionStreet.add);
//   router.get('/admin/roadSectionStreet/getstreetuser',controller.admin.roadSectionStreet.getstreetuser);
//   router.post('/admin/roadSectionStreet/del',controller.admin.roadSectionStreet.del);
//   router.get('/admin/roadSectionStreet/toedit',controller.admin.roadSectionStreet.toedit);
//   router.post('/admin/roadSectionStreet/update',controller.admin.roadSectionStreet.update);
//   router.get('/admin/roadSectionStreet/find',controller.admin.roadSectionStreet.find);
//
// //垃圾清运  后台接口
//   router.get('/admin/trash/shop_tolist', controller.admin.trash.shop_tolist);
//   router.get('/admin/trash/oilshop_tolist',controller.admin.trash.oilshop_tolist);
//   router.get('/admin/trash/getstreets', controller.admin.trash.getstreets);
//   router.get('/admin/trash/shopquery', controller.admin.trash.shopquery);
//   router.get('/admin/trash/getroads', controller.admin.trash.getroads);
//   router.post('/admin/trash/del', controller.admin.trash.del);
//   router.get('/admin/trash/detail',controller.admin.trash.detail);
//   router.get('/admin/trash/oildetail',controller.admin.trash.oildetail);//废弃油脂详情
//   router.get('/admin/trash/oiltodetail',controller.admin.trash.oiltodetail);
//   router.get('/admin/trash/todetail',controller.admin.trash.todetail);//垃圾清运详情
//   router.get('/admin/trash/shoptodetail',controller.admin.trash.shoptodetail);
//   router.get('/admin/trash/shopdetail',controller.admin.trash.shopdetail);
//   router.get('/admin/trash/oilshopdetail',controller.admin.trash.oilshopdetail);
//   //垃圾清运---单位
//   router.get('/admin/trash/unittoquery',controller.admin.trash.unittoquery);
//   router.get('/admin/trash/unitquery',controller.admin.trash.unitquery);
//   router.get('/admin/trash/oilunittoquery',controller.admin.trash.oilunittoquery);
//   //垃圾清运--楼栋
//   router.get('/admin/trash/buildtoquery',controller.admin.trash.buildtoquery);
//   router.get('/admin/trash/buildquery',controller.admin.trash.buildquery);
//   router.get('/admin/trash/oilbuildtoquery',controller.admin.trash.oilbuildtoquery);
//   //垃圾清运--居民区
//   router.get('/admin/trash/residencetoquery',controller.admin.trash.residencetoquery);
//   router.get('/admin/trash/residencequery',controller.admin.trash.residencequery);
//   router.get('/admin/trash/oilresidenttoquery',controller.admin.trash.oilresidenttoquery);
//   //垃圾清运--商户
//   router.get('/admin/trash/shoptoquery',controller.admin.trash.shoptoquery);
//   router.get('/admin/trash/shopquerys',controller.admin.trash.shopquerys);
//   router.get('/admin/trash/oilshoptoquery',controller.admin.trash.oilshoptoquery);
//
//
//
//   //门责管理
//   router.get('/admin/landmark/getstreets', controller.admin.landmark.getstreets);
//   router.get('/admin/landmark/getroads', controller.admin.landmark.getroads);
//   router.post('/admin/landmark/del', controller.admin.landmark.del);
//
//   //单位管理
//   router.get('/admin/landmark/landmark_companylist', controller.admin.landmark.landmark_companylist);
//   router.get('/admin/landmark/companylist', controller.admin.landmark.companylist);
//   router.get('/admin/landmark/toadd', controller.admin.landmark.toadd);
//   router.get('/admin/landmark/toedit', controller.admin.landmark.toedit);
//   router.get('/admin/landmark/toview', controller.admin.landmark.toview);
//   router.get('/admin/landmark/findcompany', controller.admin.landmark.findcompany);
//   router.get('/admin/landmark/companydetail', controller.admin.landmark.companydetail);
//   router.post('/admin/landmark/addcompany', controller.admin.landmark.addcompany);
//   router.post('/admin/landmark/updatecompany', controller.admin.landmark.updatecompany);
//
//   //商户管理
//   router.get('/admin/landmark/landmark_shoplist', controller.admin.landmark.landmark_shoplist);
//   router.get('/admin/landmark/shoplist', controller.admin.landmark.shoplist);
//   router.get('/admin/landmark/toaddshop', controller.admin.landmark.toaddshop);
//   router.get('/admin/landmark/toeditshop', controller.admin.landmark.toeditshop);
//   router.get('/admin/landmark/toviewshop', controller.admin.landmark.toviewshop);
//   router.get('/admin/landmark/shopdetail', controller.admin.landmark.shopdetail);
//   router.get('/admin/landmark/findshop', controller.admin.landmark.findshop);
//
//   router.post('/admin/landmark/addshop', controller.admin.landmark.addshop);
//   router.post('/admin/landmark/updateshop', controller.admin.landmark.updateshop);
//
//   //楼栋管理
//   router.get('/admin/landmark/landmark_floorlist', controller.admin.landmark.landmark_floorlist);
//   router.get('/admin/landmark/floorlist', controller.admin.landmark.floorlist);
//   router.get('/admin/landmark/toaddfloor', controller.admin.landmark.toaddfloor);
//   router.get('/admin/landmark/toviewfloor', controller.admin.landmark.toviewfloor);
//   router.get('/admin/landmark/floordetail', controller.admin.landmark.floordetail);
//   router.get('/admin/landmark/toeditfloor', controller.admin.landmark.toeditfloor);
//   router.get('/admin/landmark/findfloor', controller.admin.landmark.findfloor);
//
//   router.post('/admin/landmark/addfloor', controller.admin.landmark.addfloor);
//   router.post('/admin/landmark/updatefloor', controller.admin.landmark.updatefloor);
//   //居民区管理
//   router.get('/admin/landmark/landmark_trashlist', controller.admin.landmark.landmark_trashlist);
//   router.get('/admin/landmark/trashlist', controller.admin.landmark.trashlist);
//   router.get('/admin/landmark/toaddtrash', controller.admin.landmark.toaddtrash);
//   router.get('/admin/landmark/toviewtrash', controller.admin.landmark.toviewtrash);
//   router.get('/admin/landmark/trashdetail', controller.admin.landmark.trashdetail);
//   router.get('/admin/landmark/toedittrash', controller.admin.landmark.toedittrash);
//   router.get('/admin/landmark/findtrash', controller.admin.landmark.findtrash);
//
//   router.post('/admin/landmark/addtrash', controller.admin.landmark.addtrash);
//   router.post('/admin/landmark/updatetrash', controller.admin.landmark.updatetrash);
//
//
//   //二维码管理
//   router.get('/admin/qrcode/createQrcode', controller.admin.qrcode.createQrcode);
//   router.get('/admin/qrcode/todown', controller.admin.qrcode.todown);
//   router.get('/admin/qrcode/getstreets', controller.admin.qrcode.getstreets);
//   router.get('/admin/qrcode/getroads', controller.admin.qrcode.getroads);
//   router.post('/admin/qrcode/getfloors', controller.admin.qrcode.getfloors);
//   router.get('/admin/qrcode/get_qnum', controller.admin.qrcode.get_qnum);
//   router.get('/admin/qrcode/qrcodelist', controller.admin.qrcode.qrcodelist);
//   //商户二维码
//
//   router.get('/admin/qrcode/qrcode_shoplist', controller.admin.qrcode.qrcode_shoplist);
//
//   router.get('/admin/qrcode/shopin', controller.admin.qrcode.shopin);
//   router.get('/admin/qrcode/shop_list', controller.admin.qrcode.shop_list);
//   router.get('/admin/qrcode/tohistory', controller.admin.qrcode.tohistory);
//
//   router.post('/admin/qrcode/addshopin', controller.admin.qrcode.addshopin);
//   router.post('/admin/qrcode/shopout', controller.admin.qrcode.shopout);
//
//   //商户 单位 都有
//   router.get('/admin/qrcode/landmarkinit', controller.admin.qrcode.landmarkinit);
//   router.get('/admin/qrcode/getjson', controller.admin.qrcode.getjson);
//   router.get('/admin/qrcode/historyquery', controller.admin.qrcode.historyquery);
//   router.get('/admin/qrcode/shopedit', controller.admin.qrcode.shopedit);
//
//   router.post('/admin/qrcode/addshopinit', controller.admin.qrcode.addshopinit);
//   router.post('/admin/qrcode/updateshop', controller.admin.qrcode.updateshop);
//
//   //单位二维码
//   router.get('/admin/qrcode/qrcode_companylist', controller.admin.qrcode.qrcode_companylist);
//   router.get('/admin/qrcode/companyin', controller.admin.qrcode.companyin);
//   router.get('/admin/qrcode/company_list', controller.admin.qrcode.company_list);
//   router.get('/admin/qrcode/tohistorycompany', controller.admin.qrcode.tohistorycompany);
//
//   router.post('/admin/qrcode/addcompanyin', controller.admin.qrcode.addcompanyin);
//   router.post('/admin/qrcode/companyout', controller.admin.qrcode.companyout);
//
//
//   //居民区二维码
//   router.get('/admin/qrcode/qrcode_trashlist', controller.admin.qrcode.qrcode_trashlist);
//   router.get('/admin/qrcode/trashinit', controller.admin.qrcode.trashinit);
//   router.get('/admin/qrcode/trashin', controller.admin.qrcode.trashin);
//   router.get('/admin/qrcode/trash_list', controller.admin.qrcode.trash_list);
//   router.get('/admin/qrcode/trashedit', controller.admin.qrcode.trashedit);
//   router.get('/admin/qrcode/tohistorytrash', controller.admin.qrcode.tohistorytrash);
//
//   router.post('/admin/qrcode/addtrashinit', controller.admin.qrcode.addtrashinit);
//   router.post('/admin/qrcode/addtrashin', controller.admin.qrcode.addtrashin);
//   router.post('/admin/qrcode/trashout', controller.admin.qrcode.trashout);
//   router.post('/admin/qrcode/updatetrash', controller.admin.qrcode.updatetrash);
//
//   //楼栋二维码
//   router.get('/admin/qrcode/qrcode_floorlist', controller.admin.qrcode.qrcode_floorlist);
//   router.get('/admin/qrcode/floorin', controller.admin.qrcode.floorin);
//   router.get('/admin/qrcode/floor_list', controller.admin.qrcode.floor_list);
//   router.get('/admin/qrcode/tohistoryfloor', controller.admin.qrcode.tohistoryfloor);
//
//   router.post('/admin/qrcode/addfloorin', controller.admin.qrcode.addfloorin);
//
//
//     //一路一长一策ylyzyc
//   router.get("/admin/ylyzyc/tolist",controller.admin.ylyzyc.tolist);
//   router.get("/admin/ylyzyc/datalist",controller.admin.ylyzyc.datalist);
//   router.get("/admin/ylyzyc/toadd",controller.admin.ylyzyc.toadd);
//   router.post('/admin/ylyzyc/addylyzyc', controller.admin.ylyzyc.addylyzyc);
//   router.post("/admin/ylyzyc/del",controller.admin.ylyzyc.del);
//   router.get("/admin/ylyzyc/todetail",controller.admin.ylyzyc.todetail);
//   router.get("/admin/ylyzyc/ylyzycdetail",controller.admin.ylyzyc.ylyzycdetail); //一路一长一策添加页面-获取所属街道
//   // router.get("/admin/ylyzyc/getcontent",controller.admin.ylyzyc.getcontent);
//   router.get("/admin/ylyzyc/toedit",controller.admin.ylyzyc.toedit);
//   router.post("/admin/ylyzyc/update",controller.admin.ylyzyc.update);
//
//   //政策管理 policy
//   router.get("/admin/policy/tolist",controller.admin.policy.tolist);
//   router.get("/admin/policy/datalist",controller.admin.policy.datalist);
//   router.get("/admin/policy/toadd",controller.admin.policy.toadd);
//   router.post('/admin/policy/addpolicy', controller.admin.policy.addpolicy);
//   router.post("/admin/policy/del",controller.admin.policy.del);
//   router.get("/admin/policy/todetail",controller.admin.policy.todetail);
//   router.get("/admin/policy/policydetail",controller.admin.policy.policydetail);
//   router.get("/admin/policy/toedit",controller.admin.policy.toedit);
//   router.post("/admin/policy/update",controller.admin.policy.update);
//   router.post("/admin/policy/post",controller.admin.policy.post);
//
//   //公告管理 notice
//   router.get("/admin/notice/tolist",controller.admin.notice.tolist);
//   router.get("/admin/notice/datalist",controller.admin.notice.datalist);
//   router.get("/admin/notice/toadd",controller.admin.notice.toadd);
//   router.post('/admin/notice/addnotice', controller.admin.notice.addnotice);
//   router.post("/admin/notice/del",controller.admin.notice.del);
//   router.get("/admin/notice/todetail",controller.admin.notice.todetail);
//   router.get("/admin/notice/noticedetail",controller.admin.notice.noticedetail);
//   router.get("/admin/notice/toedit",controller.admin.notice.toedit);
//   router.post("/admin/notice/update",controller.admin.notice.update);
//   router.post("/admin/notice/post",controller.admin.notice.post);
//
//   //街道公告管理 streetnotice
//   router.get("/admin/streetnotice/tolist",controller.admin.streetnotice.tolist);
//   router.get("/admin/streetnotice/datalist",controller.admin.streetnotice.datalist);
//   router.get("/admin/streetnotice/toadd",controller.admin.streetnotice.toadd);
//   router.post('/admin/streetnotice/addstreetnotice', controller.admin.streetnotice.addstreetnotice);
//   router.post("/admin/streetnotice/del",controller.admin.streetnotice.del);
//   router.get("/admin/streetnotice/todetail",controller.admin.streetnotice.todetail);
//   router.get("/admin/streetnotice/streetnoticedetail",controller.admin.streetnotice.streetnoticedetail);
//   router.get("/admin/streetnotice/toedit",controller.admin.streetnotice.toedit);
//   router.post("/admin/streetnotice/update",controller.admin.streetnotice.update);
//   router.post("/admin/streetnotice/post",controller.admin.streetnotice.post);
//
//   //工作制度汇编 workingsystem
//   router.get("/admin/workingsystem/tolist",controller.admin.workingsystem.tolist);
//   router.get("/admin/workingsystem/datalist",controller.admin.workingsystem.datalist);
//   router.get("/admin/workingsystem/toadd",controller.admin.workingsystem.toadd);
//   router.post('/admin/workingsystem/addworkingsystem', controller.admin.workingsystem.addworkingsystem);
//   router.post("/admin/workingsystem/del",controller.admin.workingsystem.del);
//   router.get("/admin/workingsystem/todetail",controller.admin.workingsystem.todetail);
//   router.get("/admin/workingsystem/workingsystemdetail",controller.admin.workingsystem.workingsystemdetail);
//   router.get("/admin/workingsystem/toedit",controller.admin.workingsystem.toedit);
//   router.post("/admin/workingsystem/update",controller.admin.workingsystem.update);
//   router.post("/admin/workingsystem/post",controller.admin.workingsystem.post);
//
//   // 事件接口（测试）
//   router.get('/api/event/query', controller.api.event.query);
//   router.get('/api/event/datalist', controller.api.event.datalist);
//   router.get('/api/event/getstreetroad', controller.api.event.getstreetroad);
//   router.get('/api/event/getclassifys', controller.api.event.getclassifys);
//   router.get('/api/event/getstrips', controller.api.event.getstrips);
//   router.get('/api/event/getdetail', controller.api.event.getdetail);
//   router.get('/api/event/voice2text', controller.api.event.voice2text);
//   router.get('/api/event/getstreets', controller.api.event.getstreets);
//   router.get('/api/event/getroads', controller.api.event.getroads);
//   router.get('/api/event/getlandmarks', controller.api.event.getlandmarks);
//   router.get('/api/event/getlandmarkinfo', controller.api.event.getlandmarkinfo);
//   router.get('/api/event/eventflow', controller.api.event.eventflow);
//   router.get('/api/event/getqrlandmark', controller.api.event.getqrlandmark);
//   router.post('/api/event/eventview', controller.api.event.eventview);
//   router.post('/api/event/eventclose', controller.api.event.eventclose);
//   router.post('/api/event/eventpost', controller.api.event.eventpost);
//
//
//
//   //垃圾清运  小程序接口
//   router.get('/api/trash/trashShopDetail', controller.api.trash.trashShopDetail);
//   router.get('/api/trash/getshoplist', controller.api.trash.getshoplist);
//   router.get('/api/trash/getroads', controller.api.trash.getroads);
//   router.get('/api/trash/getuser', controller.api.trash.getuser);
//   router.post('/api/trash/discover', controller.api.trash.discover);
//
//   router.get('/api/trash/getTrashNum',controller.api.trash.getTrashNum);
//   router.get('/api/trash/getlandmarklist',controller.api.trash.getlandmarklist);
//   router.get('/api/trash/getroadbystreet',controller.api.trash.getroadbystreet);
//   router.get('/api/trash/residentdetail',controller.api.trash.residentdetail);
//   router.get('/api/trash/getuserinfo',controller.api.trash.getuserinfo);
//   router.post('/api/trash/report',controller.api.trash.report);
//   router.get('/api/trash/getdetail',controller.api.trash.getdetail);
//   router.get('/api/trash/getpiedata',controller.api.trash.getpiedata);
//   router.get('/api/trash/getlist',controller.api.trash.getlist);
//   router.get('/api/trash/getqrlandmark',controller.api.trash.getqrlandmark);
//   router.get('/api/trash/getlistfnow',controller.api.trash.getlistfnow);
//
//   //登录
//   router.post('/api/user/login',controller.api.user.login);
//   router.post('/api/user/getopenid',controller.api.user.getopenid);
//   router.post('/api/user/loginbyphone',controller.api.user.loginbyphone);
//   router.get('/api/user/getvcodelogin',controller.api.user.getvcodelogin);
//   router.get('/api/user/getpicvcode',controller.api.user.getpicvcode);
//   router.get('/api/user/checkverifycode',controller.api.user.checkverifycode);
//   router.get('/api/user/getforvcode',controller.api.user.getforvcode);
//   router.post('/api/user/forgetpassword',controller.api.user.forgetpassword);
//   router.post('/api/user/updatepassword',controller.api.user.updatepassword);
//
//   router.get('/api/user/getuserMess',controller.api.user.getuserMess);
//   router.get('/api/user/getuserinfo',controller.api.user.getuserinfo);
//   //个人中心
//   router.get('/api/user/getbdvcode',controller.api.user.getbdvcode);
//   router.get('/api/main/getuserMess',controller.api.main.getuserMess);
//   router.get('/api/main/getuserinfo',controller.api.main.getuserinfo);
//   router.post('/api/main/bindphone',controller.api.main.bindphone);
//   router.post('/api/main/uppassword',controller.api.main.uppassword);
//   router.get('/api/main/getlandmark',controller.api.main.getlandmark);
//   router.get('/api/main/getmember',controller.api.main.getmember);
//   router.post('/api/main/adduser',controller.api.main.adduser);
//   router.post('/api/main/updateuser',controller.api.main.updateuser);
//   router.post('/api/main/deluser',controller.api.main.deluser);
//
// //门责中心   小程序
//   router.get('/api/mnofilter/trashdetail', controller.api.mnofilter.trashdetail);
//   router.get('/api/mnofilter/shopdetail', controller.api.mnofilter.shopdetail);
//   router.get('/api/mnofilter/companydetail', controller.api.mnofilter.companydetail);
//   router.get('/api/mnofilter/floordetail', controller.api.mnofilter.floordetail);
//   router.get('/api/mnofilter/getQrcode', controller.api.mnofilter.getQrcode);
//
//   router.get('/api/menze/companylist', controller.api.menze.companylist);
//   router.get('/api/menze/shoplist', controller.api.menze.shoplist);
//   router.get('/api/menze/floorlist', controller.api.menze.floorlist);
//   router.get('/api/menze/trashlist', controller.api.menze.trashlist);
//   router.get('/api/menze/getshoplist', controller.api.menze.getshoplist);
//   router.get('/api/menze/qrcodedetail', controller.api.menze.qrcodedetail);
//   router.get('/api/menze/getfloorsList', controller.api.menze.getfloorsList);
//   router.get('/api/menze/getRoadsStreetsList', controller.api.menze.getRoadsStreetsList);
//   router.get('/api/menze/getlandmarklist', controller.api.menze.getlandmarklist);
//   router.get('/api/menze/getroadbyestate', controller.api.menze.getroadbyestate);
//
//   router.post('/api/menze/qshopinfo', controller.api.menze.qshopinfo);
//   router.post('/api/menze/bind_oldshop', controller.api.menze.bind_oldshop);
//   router.post('/api/menze/createshop', controller.api.menze.createshop);
//   router.post('/api/menze/update_shop', controller.api.menze.update_shop);
//   router.post('/api/menze/oldshop_newshop', controller.api.menze.oldshop_newshop);
//   router.post('/api/menze/update_newshop', controller.api.menze.update_newshop);
//   router.post('/api/menze/qrcode_shopout', controller.api.menze.qrcode_shopout);
//   router.post('/api/menze/update_qrcodeshop', controller.api.menze.update_qrcodeshop);
//   router.post('/api/menze/qcompanyinfo', controller.api.menze.qcompanyinfo);
//
//   router.post('/api/menze/bind_oldcompany', controller.api.menze.bind_oldcompany);
//   router.post('/api/menze/update_company', controller.api.menze.update_company);
//   router.post('/api/menze/oldcompany_newcompany', controller.api.menze.oldcompany_newcompany);
//   router.post('/api/menze/createcompany', controller.api.menze.createcompany);
//   router.post('/api/menze/update_newcompany', controller.api.menze.update_newcompany);
//   router.post('/api/menze/qfloorinfo', controller.api.menze.qfloorinfo);
//   router.post('/api/menze/bind_oldfloor', controller.api.menze.bind_oldfloor);
//   router.post('/api/menze/update_qrcodefloor', controller.api.menze.update_qrcodefloor);
//   router.get('/api/menze/ftdetail', controller.api.menze.ftdetail);
//   router.post('/api/menze/createfloor', controller.api.menze.createfloor);
//   router.post('/api/menze/update_floor', controller.api.menze.update_floor);
//   router.post('/api/menze/oldfloor_newfloor', controller.api.menze.oldfloor_newfloor);
//   router.post('/api/menze/update_newfloor', controller.api.menze.update_newfloor);
//   router.post('/api/menze/bind_oldtrash', controller.api.menze.bind_oldtrash);
//   router.post('/api/menze/createtrash', controller.api.menze.createtrash);
//   router.post('/api/menze/update_trash', controller.api.menze.update_trash);
//   router.post('/api/menze/update_newtrash', controller.api.menze.update_newtrash);
//   router.post('/api/menze/oldtrash_newtrash', controller.api.menze.oldtrash_newtrash);
//
//   //公告
//   router.get('/api/news/getstreetlist',controller.api.news.getstreetlist);
//   router.get('/api/news/document',controller.api.news.document);
//   router.get('/api/news/getstreetmsg',controller.api.news.getstreetmsg);
//   router.get('/api/news/getMessage',controller.api.news.getMessage);


};
